package com.xiaomei.manager.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.xiaomei.manager.dao.EnchashmentMapper;
import com.xiaomei.manager.model.Enchashment;
import com.xiaomei.manager.service.IEnchashmentService;
import com.xiaomei.manager.web.dto.req.EnchashmentQueryDto;
import com.xiaomei.manager.web.page.Page;

@Service
public class EnchashmentServiceImpl implements IEnchashmentService {
	@Autowired
	private EnchashmentMapper enchashmentMapper;
	
	@Override
	public List<Enchashment> getEnchashmentList(EnchashmentQueryDto dto,
			Page<Enchashment> page) {
		// TODO 自动生成的方法存根
		page.setParamDto(dto);
		return enchashmentMapper.selectByParamMap(page);
	}

	@Override
	public Object selectByPrimaryKey(Integer id) {
		// TODO 自动生成的方法存根
		return enchashmentMapper.selectByPrimaryKey(id);
	}

	@Override
	public int updateByPrimaryKeySelective(Enchashment enchashment) {
		// TODO 自动生成的方法存根
		return enchashmentMapper.updateByPrimaryKeySelective(enchashment);
	}

}
